package com.liang.mall.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.liang.mall.group.Insert;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author liang
 * @since 2021-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bz_brand")
@Validated
public class Brand implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @Excel(name = "品牌ID")
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Long brandId;

    /**
     * 品牌名称
     */
    @Excel(name = "品牌名称")
    @NotEmpty(groups = {Insert.class},message = "品牌名称不能为空")
    private String name;

    /**
     * 首字母
     */
    @Excel(name = "首字母")
    @NotEmpty(groups = {Insert.class},message = "首字母不能为空")
    private String firstLetter;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 是否显示[0-不显示 1-显示]
     */
    @Excel(name = "显示状态",replace = {"不显示_0","显示_1"})
    @NotNull(groups = {Insert.class},message = "showStatus不能为空")
    private Integer showStatus;

    /**
     * 品牌logo地址
     */
@Excel(name = "logo地址")
    private String logo;

    /**
     * 品牌描述
     */
@Excel(name = "品牌描述")
    private String brandStory;


}
